package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Description:
 * @Auther: tz
 * @Date: 2023/11/07 15:57
 */
@SpringBootApplication
@ComponentScan({"com.action","com.service","com.config","com.shiro"})
@MapperScan("com.dao")
@ImportResource("classpath:spring-transaction.xml")
@EnableScheduling
@EnableSwagger2
public class AdminApiApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(AdminApiApplication.class);
    }
}
